﻿/*  ----------------------------------------------------------------------------
 *  SysServer
 *  ----------------------------------------------------------------------------
 *  File:       TaskFactory.cs
 *  Creater:     SEEN\MistSeen
 *  ----------------------------------------------------------------------------
 *  $Date: 2010-09-06 10:36:01 +0000 (Mon, 06 Sep 2010) $
 *  $Rev: 15 $
 *  $Author: ScorDeity $
 *  $URL: http://sysserver.googlecode.com/svn/trunk/src/SysServer/TaskFactory.cs $
 *  $Id: TaskFactory.cs 15 2010-09-06 10:36:01Z ScorDeity $
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SysServer
{
    public abstract class TaskFactory : TEntityFactory
    {
        protected EntityPool _EntityPool;

        public EntityPool EntityPool
        {
            get
            {
                return _EntityPool;
            }           
        }

        public TaskFactory()
        {
            this._EntityPool = new EntityPool(this, true);
        }

        public void Done(Task task)
        {
            this._EntityPool.Add(task);

        }
    }
}